﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OrdenVentaListGrid.ascx.cs" 

Inherits="UILGestion.VentaAdmin.OrdenVenta.OrdenVentaListGrid" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>

    
<asp:Panel runat="server" ID="PanelRecepcion" >
<asp:DataPager ID="pager" PagedControlID="ListView1" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />
    </Fields>
</asp:DataPager>
<asp:ListView ID="ListView1" runat="server" OnDataBound="ListView1_DataBound" 
    DataKeyNames="idInternal" onitemdatabound="ListView1_ItemDataBound" 
        >
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server" class="ms-crm-List-Header">
            <tr id="Tr1" runat="server">
                <th id="Th5" runat="server">
                    <asp:LinkButton ID="LinkButton5" CommandName="Sort" CommandArgument="numDocumento"  ForeColor="Blue" runat="server">Numero</asp:LinkButton>
                </th>      
               <th id="Th3" runat="server">
                    <asp:LinkButton ID="LinkButton3" CommandName="Sort" CommandArgument="fecha" ForeColor="Blue" runat="server">Fecha Sep.</asp:LinkButton>
                </th>   
                 <th id="Th13" runat="server">
                    <asp:LinkButton ID="LinkButton13" CommandName="Sort" CommandArgument="fechaVenta" ForeColor="Blue" runat="server">Fecha Ven.</asp:LinkButton>
                </th>   
                   
                 <th id="Th4" runat="server" align="right">
                    <asp:LinkButton ID="LinkButton4" CommandName="Sort" CommandArgument="codigo" ForeColor="Blue" runat="server">CUH</asp:LinkButton>
                </th>
                 <th id="Th2" runat="server" align="right">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" CommandArgument="descripcion" ForeColor="Blue" runat="server">Descripción</asp:LinkButton>
                </th>
                 <th id="Th6" runat="server" align="right">
                    <asp:LinkButton ID="LinkButton2" CommandName="Sort" CommandArgument="localizacion" ForeColor="Blue" runat="server">Localización</asp:LinkButton>
                </th>
               
                 <th id="Th9" runat="server">
                    <asp:LinkButton ID="LinkButton7" CommandName="Sort" CommandArgument="clienteStr" ForeColor="Blue" runat="server">Cliente</asp:LinkButton>
                </th>
                 <th id="Th8" runat="server">
                    <asp:LinkButton ID="LinkButton6" CommandName="Sort" CommandArgument="FormatoVentaStr" ForeColor="Blue" runat="server">Formato de Venta</asp:LinkButton>
                </th>
                  <th id="Th11" runat="server">
                    <asp:LinkButton ID="LinkButton11" CommandName="Sort" CommandArgument="estadoStr" ForeColor="Blue" runat="server">ESTADO</asp:LinkButton>
                </th>
                  
                  <th id="Th7" runat="server" align="right">
                    <asp:LinkButton ID="LinkButton8" CommandName="Sort" CommandArgument="total" ForeColor="Blue" runat="server">TOTAL</asp:LinkButton>
                </th>
                 <th id="Th1" runat="server" align="right">
                    <asp:LinkButton ID="LinkButton9" CommandName="Sort" CommandArgument="pago" ForeColor="Blue" runat="server">PAGO</asp:LinkButton>
                </th>
                 <th id="Th10" runat="server" align="right">
                    <asp:LinkButton ID="LinkButton10" CommandName="Sort" CommandArgument="saldo" ForeColor="Blue" runat="server">SALDO</asp:LinkButton>
                </th>
                <%-- <th id="Th1" runat="server" align="right">
                    <asp:LinkButton ID="LinkButton9" CommandName="Sort" CommandArgument="" ForeColor="Blue" runat="server">MINUTA</asp:LinkButton>
                </th>
                  <th id="Th10" runat="server" align="right">
                    <asp:LinkButton ID="LinkButton10" CommandName="Sort" CommandArgument="" ForeColor="Blue" runat="server">ENVIOS</asp:LinkButton>
                </th>
                  <th id="Th11" runat="server" align="right">
                    <asp:LinkButton ID="LinkButton11" CommandName="Sort" CommandArgument="" ForeColor="Blue" runat="server">ESCRITURA</asp:LinkButton>
                </th> --%>
                  <th id="Th12" runat="server" align="right">
                    <asp:LinkButton ID="LinkButton12" CommandName="Sort" CommandArgument="" ForeColor="Blue" runat="server">DESEMBOLSO</asp:LinkButton>
                </th>
              <%--  <th id="Th13" runat="server" align="right">
                    <asp:LinkButton ID="LinkButton13" CommandName="Sort" CommandArgument="" ForeColor="Blue" runat="server">LEGAL</asp:LinkButton>
                </th> --%>
            <th id="Th14" runat="server" align="right">
     
                </th>
     
                
            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>



    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#fff":"#eee" %>'>
           <td width="60px">
               <asp:Hyperlink runat= "server"  ForeColor="Blue"
                Text='<%# DataBinder.Eval(Container.DataItem,"numdocumento").ToString()%>'  
                 Target="_self"  ID="Hyperlink1"
                NavigateUrl='<%# "~/VentaAdmin/OrdenVenta/OrdenVentaReadForm.aspx?id=" + 
                DataBinder.Eval (Container.DataItem,"idInternal").ToString()  +
                "&idProyecto=" + DataBinder.Eval (Container.DataItem,"idProyecto").ToString()
                %>' 
               />   
            </td>
             <td  align="left" width="70px">
               <%# Eval("fechaStr")%> <br />
            </td>
             <td  align="left" width="70px">
               <%# Eval("fechaVentaStr")%> <br />
            </td>
             
             <td  width="100px"> <%# Eval("codigo")%>      </td>   
             <td  width="100px"> <%# Eval("descripcion")%> </td>
             <td  width="120px"> <%# Eval("localizacion")%>  - <%# Eval("piso")%> </td>
            
           <td  align="left" width="200px" >
               <%# Eval("clienteStr")%> <br />
            </td >
                     <td  align="left" width="150px" >
               <%# Eval("formatoVentaStr")%> <br />
            </td>
                     <td  align="left" width="150px" >
               <%# Eval("estadoStr")%> <br />
            </td>

             <td width="95px" align="right"> <%# Eval("totalStr")%></td>
               <td width="95px" align="right"> <%# Eval("pagoStr")%></td>
                 <td width="95px" align="right"> <%# Eval("SaldoStr")%></td>

<%--
             <td width="95px" align="right"> 
             
             <asp:LinkButton ID="minutaLBTN" runat="server">
             <asp:Literal Text=<%# Eval("minuta")%>  ID="minutaLTL" runat="server"></asp:Literal> </asp:LinkButton>
             
             
             
             
              
         <asp:modalpopupextender ID="MinutaModalpopupextenderadd"
                   runat="server" 
              BackgroundCssClass="modalBackground" 
              CancelControlID="cancelarMinBTN" 
              dropshadow="True" DynamicServicePath="" 
              Enabled="True" 
               X=0 Y=0 
              popupcontrolid="minutaParentPanel" 
              popupdraghandlecontrolid="minutaPanel"
               targetcontrolid="minutaLBTN"/>
               

  <asp:Panel ID="minutaParentPanel" runat="server" Height="250px" >
  <asp:Panel ID="minutaPanel"   runat="server" Height="250px"  Width="400px"  Style="background-color:White;border:solid 1px Gray;color:Black">
 

 <asp:Panel ID="Panel1" runat="server"   CssClass="Heading secTitle AreaHeading ms-crm-List-Header "   >
 <div style="text-align:left">
 
 <table>
 <tr>
 <td align="right">CHU:</td>
 <td><%# Eval("codigo").ToString() + ',' + Eval("piso").ToString() + ',' + Eval("localizacion").ToString()%> </td>
 </tr>
 <tr>
 <td align="right">NOMBRE:</td>
 <td> <%# Eval("clienteStr").ToString()  %> </td>
 </tr>
 </table>
 
   
</div>
 </asp:Panel>
 

            <asp:Panel ID="Panel7" runat="server" Height="180px"  >
 <table class="ui-accordion">
 <tr class="Heading secTitle AreaHeading ms-crm-List-Header " >
 <td align="center" >PROCESO</td>
 <td align="center" >FECHA</td>
 </tr>

         <tr>
             <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                 Fecha de&nbsp; Impresión:</td>
             <td align="left">
                 <asp:TextBox ID="minFechaPrintTXT" runat="server" TabIndex="1" Width="70px" Text='<%# Eval("minFechaPrintStr")%>' ></asp:TextBox>
                 <asp:ImageButton ID="ImageButton3" runat="Server" 
                     AlternateText="Click aqui para mostrar calendario" 
                     ImageUrl="~/Images/month.gif" Width="16px" />
                 <asp:CalendarExtender ID="CalendarExtender2" runat="server" 
                     PopupButtonID="ImageButton3" TargetControlID="minFechaPrintTXT"></asp:CalendarExtender>
             </td>
         </tr>
         <tr>
             <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                 Fecha de Firma Cliente:</td>
             <td align="left">
                 <asp:TextBox ID="minFechaFirmClienteTXT" runat="server" TabIndex="1" Width="70px" Text='<%# Eval("minFechaFirmClienteStr")%>'  ></asp:TextBox>
                 <asp:ImageButton ID="ImageButton4" runat="Server" 
                     AlternateText="Click aqui para mostrar calendario" 
                     ImageUrl="~/Images/month.gif" Width="16px" />
                 <asp:CalendarExtender ID="CalendarExtender3" runat="server" 
                     PopupButtonID="ImageButton4" TargetControlID="minFechaFirmClienteTXT"></asp:CalendarExtender>
             </td>
         </tr>
         <tr>
             <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                 Fecha de Firma CLASEM:</td>
             <td align="left">
                 <asp:TextBox ID="minfechaFirmEmpresaTXT" runat="server" TabIndex="1" Width="70px" Text='<%# Eval("minfechaFirmEmpresaStr")%>'></asp:TextBox>
                 <asp:ImageButton ID="ImageButton5" runat="Server" 
                     AlternateText="Click aqui para mostrar calendario" 
                     ImageUrl="~/Images/month.gif" Width="16px" />
                 <asp:CalendarExtender ID="CalendarExtender4" runat="server" 
                     PopupButtonID="ImageButton5" TargetControlID="minfechaFirmEmpresaTXT"></asp:CalendarExtender>
             </td>
         </tr>
         <tr>
             <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                 Fecha de Firma Banco:</td>
             <td align="left">
                 <asp:TextBox ID="minfechaFirmBancoTXT" runat="server" TabIndex="1" Width="70px" Text='<%# Eval("minfechaFirmBancoStr")%>'></asp:TextBox>
                 <asp:ImageButton ID="ImageButton6" runat="Server" 
                     AlternateText="Click aqui para mostrar calendario" 
                     ImageUrl="~/Images/month.gif" Width="16px" />
                 <asp:CalendarExtender ID="CalendarExtender5" runat="server" 
                     PopupButtonID="ImageButton6" TargetControlID="minfechaFirmBancoTXT"></asp:CalendarExtender>
             </td>
         </tr>
     
</table>

  </asp:Panel>


<asp:Panel ID="Panel19" runat="server"   >
        
<table width="100%" >
 <tr  class="Heading secTitle AreaHeading ms-crm-List-Header "  >
               
                <td >
              <asp:Button ID="OkMinButton" runat="server" BorderColor="Control" CssClass="ms-crm-List-Header" Text="Guardar"
                     CommandArgument='<%# Eval("idInternal")%>' ImageUrl="../../Images/delete.gif" 
                     OnClick="opcionBTN" OnClientClick="return confirm('Usted quiere guardar?')" />

                    <asp:Button ID="cancelarMinBTN"  runat="server" Text="Cancelar" CssClass="ms-crm-List-Header" />&nbsp;
                   
                </td>
   </tr>


   
</table>
        </asp:Panel> 



        </asp:Panel>
</asp:Panel>
             
             
             
             
             
             
             
             </td>

             <td width="95px" align="right">
               <asp:LinkButton ID="envicoLBTN" runat="server">
              <asp:Literal Text=<%# Eval("envios")%>  ID="enviosLTL" runat="server"></asp:Literal>
              </asp:LinkButton>
              
               <asp:modalpopupextender ID="Modalpopupextender1"
                   runat="server" 
              BackgroundCssClass="modalBackground" 
              CancelControlID="cancelarEnvioBTN" 
              dropshadow="True" DynamicServicePath="" 
              Enabled="True"
              X=0 Y=0 
              popupcontrolid="envioParentPanel" 
              popupdraghandlecontrolid="envioPanel"
               targetcontrolid="envicoLBTN"/>
              
                <asp:Panel ID="envioParentPanel" runat="server" Height="250px">
         <asp:Panel ID="envioPanel" runat="server" Height="250px" 
             Style="background-color:White;border:solid 1px Gray;color:Black" Width="400px">
             <asp:Panel ID="Panel20" runat="server" 
                 CssClass="Heading secTitle AreaHeading ms-crm-List-Header ">
                 <div style="text-align:left">
                     <table>
                         <tr>
                             <td align="right">
                                 CHU:</td>
                             <td>
                                 <%# Eval("codigo").ToString() + ',' + Eval("piso").ToString() + ',' + Eval("localizacion").ToString()%> 
                             </td>
                         </tr>
                         <tr>
                             <td align="right">
                                 NOMBRE:</td>
                             <td>
                                 <%# Eval("clienteStr").ToString()  %> 
                             </td>
                         </tr>
                     </table>
                 </div>
             </asp:Panel>
             <asp:Panel ID="Panel21" runat="server" Height="180px">
                 <table class="ui-accordion">
                     <tr class="Heading secTitle AreaHeading ms-crm-List-Header ">
                         <td align="center">
                             PROCESO</td>
                         <td align="center">
                             FECHA</td>
                     </tr>
                     <tr>
                         <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                             Minuta a Notaria:</td>
                         <td align="left">
                             <asp:TextBox ID="envioNotariaTXT" runat="server" TabIndex="1" 
                                 Text='<%# Eval("envioNotariaStr")%>' Width="70px"></asp:TextBox>
                             <asp:ImageButton ID="ImageButton7" runat="Server" 
                                 AlternateText="Click aqui para mostrar calendario" 
                                 ImageUrl="~/Images/month.gif" Width="16px" />
                             <asp:CalendarExtender ID="CalendarExtender6" runat="server" 
                                 PopupButtonID="ImageButton7" TargetControlID="envioNotariaTXT">
                             </asp:CalendarExtender>
                         </td>
                     </tr>
                     <tr>
                         <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                             Minuta a Banco:</td>
                         <td align="left">
                             <asp:TextBox ID="envioBancoTXT" runat="server" TabIndex="1" 
                                 Text='<%# Eval("envioBancoStr")%>' Width="70px"></asp:TextBox>
                             <asp:ImageButton ID="ImageButton8" runat="Server" 
                                 AlternateText="Click aqui para mostrar calendario" 
                                 ImageUrl="~/Images/month.gif" Width="16px" />
                             <asp:CalendarExtender ID="CalendarExtender7" runat="server" 
                                 PopupButtonID="ImageButton8" TargetControlID="envioBancoTXT">
                             </asp:CalendarExtender>
                         </td>
                     </tr>
                     <tr>
                         <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                             Minuta a COFIDE:</td>
                         <td align="left">
                             <asp:TextBox ID="envioCofideTXT" runat="server" TabIndex="1" 
                                 Text='<%# Eval("envioCofideStr")%>' Width="70px"></asp:TextBox>
                             <asp:ImageButton ID="ImageButton9" runat="Server" 
                                 AlternateText="Click aqui para mostrar calendario" 
                                 ImageUrl="~/Images/month.gif" Width="16px" />
                             <asp:CalendarExtender ID="CalendarExtender8" runat="server" 
                                 PopupButtonID="ImageButton9" TargetControlID="envioCofideTXT">
                             </asp:CalendarExtender>
                         </td>
                     </tr>
                     <tr>
                         <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                             Minuta a FMV:</td>
                         <td align="left">
                             <asp:TextBox ID="envioFMVTXT" runat="server" TabIndex="1" 
                                 Text='<%# Eval("envioFMVStr")%>' Width="70px"></asp:TextBox>
                             <asp:ImageButton ID="ImageButton10" runat="Server" 
                                 AlternateText="Click aqui para mostrar calendario" 
                                 ImageUrl="~/Images/month.gif" Width="16px" />
                             <asp:CalendarExtender ID="CalendarExtender9" runat="server" 
                                 PopupButtonID="ImageButton10" TargetControlID="envioFMVTXT">
                             </asp:CalendarExtender>
                         </td>
                     </tr>
                 </table>
             </asp:Panel>
      
             <asp:Panel ID="Panel22" runat="server">
                 <table width="100%">
                     <tr class="Heading secTitle AreaHeading ms-crm-List-Header ">
                         <td>
                             <asp:Button ID="OkEnvioBTN" runat="server"  BorderColor="Control"  CssClass="ms-crm-List-Header" Text="Guardar"
                                 CommandArgument='<%# Eval("idInternal")%>'  
                                 OnClick="opcionBTN" OnClientClick="return confirm('Usted quiere guardar?')" />
                             <asp:Button ID="cancelarEnvioBTN" runat="server"  BorderColor="Control" CssClass="ms-crm-List-Header" 
                                 Text="Cancelar" />
                             &nbsp;
                         </td>
                     </tr>
                 </table>
             </asp:Panel>

          </asp:Panel>
</asp:Panel>

              </td>
             <td width="95px" align="right">
             
               <asp:LinkButton ID="escrituraLBTN" runat="server">
              <asp:Literal Text=<%# Eval("escritura")%>  ID="escrituraLTL" runat="server"></asp:Literal>
              </asp:LinkButton>

                <asp:modalpopupextender ID="Modalpopupextender2"
                   runat="server" 
              BackgroundCssClass="modalBackground" 
              CancelControlID="cancelarEscrituraBTN" 
              dropshadow="True" DynamicServicePath="" 
              Enabled="True" 
              X=0 Y=0 
              popupcontrolid="escrituraParentPanel" 
              popupdraghandlecontrolid="escrituraPanel"
               targetcontrolid="escrituraLBTN"/>

  <asp:Panel ID="escrituraParentPanel" runat="server" Height="250px" >
  <asp:Panel ID="escrituraPanel"   runat="server" Height="250px"  Width="400px"  Style="background-color:White;border:solid 1px Gray;color:Black">
 

 <asp:Panel ID="Panel2" runat="server"   CssClass="Heading secTitle AreaHeading ms-crm-List-Header "   >
 <div style="text-align:left">
 
 <table>
 <tr>
 <td align="right">CHU:</td>
 <td><%# Eval("codigo").ToString() + ',' + Eval("piso").ToString() + ',' + Eval("localizacion").ToString()%> </td>
 </tr>
 <tr>
 <td align="right">NOMBRE:</td>
 <td> <%# Eval("clienteStr").ToString()  %> </td>
 </tr>
 </table>
 
   
</div>
 </asp:Panel>
 

            <asp:Panel ID="Panel3" runat="server" Height="180px"  >
 <table class="ui-accordion">
 <tr class="Heading secTitle AreaHeading ms-crm-List-Header " >
 <td align="center" >PROCESO</td>
 <td align="center" >FECHA</td>
 </tr>

         <tr>
             <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                 Kardex:</td>
             <td align="left">
                 <asp:TextBox ID="escriturakardexTXT" runat="server" TabIndex="1" Width="70px" Text='<%# Eval("escriturakardexStr")%>' ></asp:TextBox>
                 <asp:ImageButton ID="ImageButtonA" runat="Server" 
                     AlternateText="Click aqui para mostrar calendario" 
                     ImageUrl="~/Images/month.gif" Width="16px" />
                 <asp:CalendarExtender ID="CalendarExtender1" runat="server" 
                     PopupButtonID="ImageButtonA" TargetControlID="escriturakardexTXT"></asp:CalendarExtender>
             </td>
         </tr>
         <tr>
             <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                 Nro. Operacion:</td>
             <td align="left">
                 <asp:TextBox ID="escrituraKardexNumTXT" runat="server" TabIndex="1" 
                     Text='<%# Eval("escrituraKardexNumStr")%>' Width="70px"></asp:TextBox>
                 
             </td>
         </tr>
         <tr>
             <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                 Impresión de Escritura:</td>
             <td align="left">
                 <asp:TextBox ID="escrituraPrintTXT" runat="server" TabIndex="1" 
                     Text='<%# Eval("escrituraPrintStr")%>' Width="70px"></asp:TextBox>
                 <asp:ImageButton ID="ImageButtona4" runat="Server" 
                     AlternateText="Click aqui para mostrar calendario" 
                     ImageUrl="~/Images/month.gif" Width="16px" />
                 <asp:CalendarExtender ID="CalendarExtender11" runat="server" 
                     PopupButtonID="ImageButtona4" TargetControlID="escrituraPrintTXT">
                 </asp:CalendarExtender>
             </td>
     </tr>
         <tr>
             <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                 Firma Cliente:</td>
             <td align="left">
                 <asp:TextBox ID="escrituraFirmClienteTXT" runat="server" TabIndex="1" Width="70px"
                  Text='<%# Eval("escrituraFirmClienteStr")%>'></asp:TextBox>
                 <asp:ImageButton ID="ImageButtona5" runat="Server" 
                     AlternateText="Click aqui para mostrar calendario" 
                     ImageUrl="~/Images/month.gif" Width="16px" />
                 <asp:CalendarExtender ID="CalendarExtender12" runat="server" 
                     PopupButtonID="ImageButtona5" TargetControlID="escrituraFirmClienteTXT"></asp:CalendarExtender>
             </td>
         </tr>
         <tr>
             <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                 Firma CLASEM S.A.C:</td>
             <td align="left">
                 <asp:TextBox ID="escrituraFirmEmpresaTXT" runat="server" TabIndex="1" Width="70px" 
                 Text='<%# Eval("escrituraFirmEmpresaStr")%>'></asp:TextBox>
                 <asp:ImageButton ID="ImageButtona6" runat="Server" 
                     AlternateText="Click aqui para mostrar calendario" 
                     ImageUrl="~/Images/month.gif" Width="16px" />
                 <asp:CalendarExtender ID="CalendarExtender15" runat="server" 
                     PopupButtonID="ImageButtona6" TargetControlID="escrituraFirmEmpresaTXT"></asp:CalendarExtender>
             </td>
         </tr>
     
     <tr>
         <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
             Firma Banco:</td>
         <td align="left">
              <asp:TextBox ID="escrituraFirmBancoTXT" runat="server" TabIndex="1" Width="70px" Text='<%# Eval("escrituraFirmBancoStr")%>'></asp:TextBox>
                 <asp:ImageButton ID="ImageButton1" runat="Server" 
                     AlternateText="Click aqui para mostrar calendario" 
                     ImageUrl="~/Images/month.gif" Width="16px" />
                 <asp:CalendarExtender ID="CalendarExtender16" runat="server" 
                     PopupButtonID="ImageButton1" TargetControlID="escrituraFirmBancoTXT"></asp:CalendarExtender></td>
     </tr>
     
</table>

  </asp:Panel>


<asp:Panel ID="Panel8" runat="server"   >
        
<table width="100%" >
 <tr  class="Heading secTitle AreaHeading ms-crm-List-Header "  >
               
                <td >
              <asp:Button ID="OkEscrituraBTN" runat="server"  BorderColor="Control" CssClass="ms-crm-List-Header" Text="Guardar"
                     CommandArgument='<%# Eval("idInternal")%>' 
                     OnClick="opcionBTN" OnClientClick="return confirm('Usted quiere guardar?')" />

                    <asp:Button ID="cancelarEscrituraBTN"  runat="server" Text="Cancelar"  BorderColor="Control" CssClass="ms-crm-List-Header"  />&nbsp;
                   

                  
                </td>
   </tr>


   
</table>
        </asp:Panel> 



        </asp:Panel>
</asp:Panel>
             
  

              </td>--%>
             <td width="95px" align="right">
             
              <asp:LinkButton ID="desembolsoLBTN" runat="server">
                </asp:LinkButton>

              <asp:Literal Text=<%# Eval("desembolso")%>  ID="desembolsoLTL" runat="server"></asp:Literal>
            
              
              
              </td>
               
         <%--    <td width="95px" align="right">
             <asp:LinkButton ID="legalLBTN" runat="server">
              <asp:Literal Text=<%# Eval("legal")%>  ID="legalLTL" runat="server"></asp:Literal>
              
              
              
            
            </asp:LinkButton>
              
             <asp:modalpopupextender ID="Modalpopupextender3"
                   runat="server" 
              BackgroundCssClass="modalBackground" 
              CancelControlID="cancelarLegalBTN" 
              dropshadow="True" DynamicServicePath="" 
              Enabled="True" 
              X=0 Y=0 
              popupcontrolid="legalParentPanel" 
              popupdraghandlecontrolid="legalPanel"
               targetcontrolid="legalLBTN"/>


     <asp:Panel ID="legalParentPanel" runat="server" Height="250px" >
  <asp:Panel ID="legalPanel"   runat="server" Height="250px"  Width="400px"  Style="background-color:White;border:solid 1px Gray;color:Black">
 

 <asp:Panel ID="Panel4" runat="server"   CssClass="Heading secTitle AreaHeading ms-crm-List-Header "   >
 <div style="text-align:left">
 
 <table>
 <tr>
 <td align="right">CHU:</td>
 <td><%# Eval("codigo").ToString() + ',' + Eval("piso").ToString() + ',' + Eval("localizacion").ToString()%> </td>
 </tr>
 <tr>
 <td align="right">NOMBRE:</td>
 <td> <%# Eval("clienteStr").ToString()  %> </td>
 </tr>
 </table>
 
   
</div>
 </asp:Panel>
 

            <asp:Panel ID="Panel5" runat="server" Height="180px"  >
 <table class="ui-accordion">
 <tr class="Heading secTitle AreaHeading ms-crm-List-Header " >
 <td align="center" >PROCESO</td>
 <td align="center" >FECHA</td>
 </tr>

         <tr>
             <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                 Inscripción Cliente:</td>
             <td align="left">
                 <asp:TextBox ID="legalInsClienteTXT" runat="server" TabIndex="1" Width="70px" Text='<%# Eval("legalInsClienteStr")%>' ></asp:TextBox>
                 <asp:ImageButton ID="ImageButtons2" runat="Server" 
                     AlternateText="Click aqui para mostrar calendario" 
                     ImageUrl="~/Images/month.gif" Width="16px" />
                 <asp:CalendarExtender ID="CalendarExtender10" runat="server" 
                     PopupButtonID="ImageButtons2" TargetControlID="legalInsClienteTXT"></asp:CalendarExtender>
             </td>
         </tr>
         <tr>
             <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                 Entrega de vivienda:</td>
             <td align="left">
                 <asp:TextBox ID="legalEntregaTXT" runat="server" TabIndex="1" 
                     Text='<%# Eval("legalEntregaStr")%>' Width="70px"></asp:TextBox>
                 <asp:ImageButton ID="ImageButton11" runat="Server" 
                     AlternateText="Click aqui para mostrar calendario" 
                     ImageUrl="~/Images/month.gif" Width="16px" />
                 <asp:CalendarExtender ID="CalendarExtender13" runat="server" 
                     PopupButtonID="ImageButton11" TargetControlID="legalEntregaTXT">
                 </asp:CalendarExtender>
             </td>
     </tr>
         <tr>
             <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                 Levant Hipot. Otro Bancos:</td>
             <td align="left">
                 <asp:TextBox ID="legalHipotOtroBancoTXT" runat="server" TabIndex="1" Width="70px" 
                 Text='<%# Eval("legalHipotOtroBancoStr")%>'></asp:TextBox>
                 <asp:ImageButton ID="ImageButton15" runat="Server" 
                     AlternateText="Click aqui para mostrar calendario" 
                     ImageUrl="~/Images/month.gif" Width="16px" />
                 <asp:CalendarExtender ID="CalendarExtender14" runat="server" 
                     PopupButtonID="ImageButton15" TargetControlID="legalHipotOtroBancoTXT"></asp:CalendarExtender>
             </td>
         </tr>
     
</table>

  </asp:Panel>


<asp:Panel ID="Panel6" runat="server"   >
        
<table width="100%" >
 <tr  class="Heading secTitle AreaHeading ms-crm-List-Header "  >
               
                <td >
              <asp:Button ID="OKLegalBTN" runat="server"  BorderColor="Control" CssClass="ms-crm-List-Header"  Text="Guardar"
                     CommandArgument='<%# Eval("idInternal")%>' 
                     OnClick="opcionBTN" OnClientClick="return confirm('Usted quiere guardar?')" />

                    <asp:Button ID="cancelarLegalBTN"  runat="server" Text="Cancelar"  BorderColor="Control" CssClass="ms-crm-List-Header"  />&nbsp;
                   

                  
                </td>
   </tr>


   
</table>
        </asp:Panel> 



        </asp:Panel>
</asp:Panel>
    
</td>--%>
           
             <td width="45px" align="right">
                

                <asp:ImageButton ID="lnkRemove" runat="server" BorderColor="Control" 
                     CommandArgument='<%# Eval("idInternal")%>' ImageUrl="../../Images/delete.gif" 
                     OnClick="Deleteitem" OnClientClick="return confirm('Usted quiere eliminar?')" />
                                        
                 
            </td>
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" >
            <tr>
                <td>
                   <h2 style="font-size: x-small; color: #960818">
                        No existe Informacion.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>









</asp:Panel>

    




    




    
   

        

    





    
   <%--  <p>
         &nbsp;</p>
<asp:Panel ID="legalParentPanel0" runat="server" Height="250px">
    <asp:Panel ID="legalPanel0" runat="server" Height="250px" 
        Style="background-color:White;border:solid 1px Gray;color:Black" Width="400px">
        <asp:Panel ID="Panel23" runat="server" 
            CssClass="Heading secTitle AreaHeading ms-crm-List-Header ">
            <div style="text-align:left">
                <table>
                    <tr>
                        <td align="right">
                            CHU:</td>
                        <td>
                            <%# Eval("codigo").ToString() + ',' + Eval("piso").ToString() + ',' + Eval("localizacion").ToString()%> 
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            NOMBRE:</td>
                        <td>
                            <%# Eval("clienteStr").ToString()  %> 
                        </td>
                    </tr>
                </table>
            </div>
        </asp:Panel>
        <asp:Panel ID="Panel24" runat="server" Height="180px">
            <table class="ui-accordion">
                <tr class="Heading secTitle AreaHeading ms-crm-List-Header ">
                    <td align="center">
                        PROCESO</td>
                    <td align="center">
                        FECHA</td>
                </tr>
                <tr>
                    <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                        Inscripción Cliente:</td>
                    <td align="left">
                        <asp:TextBox ID="legalInsClienteTXT0" runat="server" TabIndex="1" 
                            Text='<%# Eval("legalInsClienteStr")%>' Width="70px"></asp:TextBox>
                        <asp:ImageButton ID="ImageButtons3" runat="Server" 
                            AlternateText="Click aqui para mostrar calendario" 
                            ImageUrl="~/Images/month.gif" Width="16px" />
                        <asp:CalendarExtender ID="CalendarExtender17" runat="server" 
                            PopupButtonID="ImageButtons2" TargetControlID="legalInsClienteTXT">
                        </asp:CalendarExtender>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                        Entrega de vivienda:</td>
                    <td align="left">
                        <asp:TextBox ID="legalEntregaTXT0" runat="server" TabIndex="1" 
                            Text='<%# Eval("legalEntregaStr")%>' Width="70px"></asp:TextBox>
                        <asp:ImageButton ID="ImageButton16" runat="Server" 
                            AlternateText="Click aqui para mostrar calendario" 
                            ImageUrl="~/Images/month.gif" Width="16px" />
                        <asp:CalendarExtender ID="CalendarExtender18" runat="server" 
                            PopupButtonID="ImageButton11" TargetControlID="legalEntregaTXT">
                        </asp:CalendarExtender>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="Heading secTitle AreaHeading ms-crm-List-Header ">
                        Levant Hipot. Otro Bancos:</td>
                    <td align="left">
                        <asp:TextBox ID="legalHipotOtroBancoTXT0" runat="server" TabIndex="1" 
                            Text='<%# Eval("legalHipotOtroBancoStr")%>' Width="70px"></asp:TextBox>
                        <asp:ImageButton ID="ImageButton17" runat="Server" 
                            AlternateText="Click aqui para mostrar calendario" 
                            ImageUrl="~/Images/month.gif" Width="16px" />
                        <asp:CalendarExtender ID="CalendarExtender19" runat="server" 
                            PopupButtonID="ImageButton15" TargetControlID="legalHipotOtroBancoTXT">
                        </asp:CalendarExtender>
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="Panel25" runat="server">
            <table width="100%">
                <tr class="Heading secTitle AreaHeading ms-crm-List-Header ">
                    <td>
                        <asp:Button ID="OKLegalBTN0" runat="server" BorderColor="Control" 
                            CommandArgument='<%# Eval("idInternal")%>' CssClass="ms-crm-List-Header" 
                            OnClick="opcionBTN" OnClientClick="return confirm('Usted quiere guardar?')" 
                            Text="Guardar" />
                        <asp:Button ID="cancelarLegalBTN0" runat="server" BorderColor="Control" 
                            CssClass="ms-crm-List-Header" Text="Cancelar" />
                        &nbsp;
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </asp:Panel>
</asp:Panel>


    --%>




    




    
   

        

    





    
     